<template>
  <div>
    <div id="video-container"></div>
    <br>
    <br>
    <button @click="capturePicture()">player.capturePicture()</button>
  </div>
</template>
<script>
import EZUIKit from "ezuikit-js";
export default {
  data() {
    return {
      player: null,
    };
  },
  mounted() {
    this.player = new EZUIKit.EZUIKitPlayer({
      id: "video-container", // 视频容器ID
      accessToken:
        "at.03siyx3d1eo2pzg08h03n3xk8u9n00dw-6m3gtkorcv-0gzfy30-tppjxfbim",
      url: "ezopen://open.ys7.com/241477905/1.live",
      width: 600,
      height: 400,
    });
  },
  methods: {
    /* 监控截图 */
    capturePicture() {
      this.player.capturePicture().then(res=>{
        console.log(1111,res);
      });
    },
  },
};
</script>
<style lang="scss" scoped>
</style>